/*
Copyright (C) 2009  Raymond Jeon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef __GL_MAIL_STATISTICS_H__
#define __GL_MAIL_STATISTICS_H__


#define STAT_RECVBYTE		"recvbyte"
#define STAT_SENDBYTE		"sendbyte"




#define STAT_RECVCONN		0
#define STAT_REJECTSMTP		1
#define STAT_SPAMMAIL		2
#define STAT_RELAYDENY		3
#define STAT_UNKNOWNUSER	4
#define STAT_RECVUSER		5
#define STAT_SENDCONN		6
#define STAT_RETURNMAIL		7
#define STAT_ORPHANMAIL		8
#define STAT_SPOOLING		9
#define STAT_POP3CONN		10
#define STAT_REJECTPOP3		11
#define STAT_POP3RETR		12






void GlStatEventInit();
void GlStatEventAdd(int iName, int iNum);
void GlStatStreamInit();
void GlStatStreamRecv(int iNum);
void GlStatStreamSend(int iNum);
void GlStatStreamTimeCheck();





#endif	// __GL_MAIL_STATISTICS_H__



